package com.tiancheng.trade.authserver.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

@TableName("auth_org")
@Getter
@Setter
public class AuthOrg extends BaseDataPermissionModel {
    private String applicationId;
    private String name;
    private String code;
    private String describe;
    private String parentId;
    private String parentIds;
    private String type;
    /**
     * 排序
     */
    private Integer order;

    public static enum OrgType {
        Company,
        Department;

        public String getName() {
            if (this == OrgType.Company) {
                return "公司";
            } else {
                return "部门";
            }
        }
    }
}
